

function login() {
    var user = document.getElementById("user").value
    var password = document.getElementById("password").value
    console.log(user)
    console.log(password)
    if( user=== 'lulu' && password==='123'){
        location.href = '/list'
    }else {
        alert('用户名或密码错误')
    }

}